package hello;

import java.io.Closeable;

/**
 * User: wlai
 * Date: 3/18/15
 * Time: 11:24 AM
 */
public class MyClosable implements AutoCloseable {

    public void open() {

    }

    public void doSomethingException() throws Exception {
        String name = null;
        System.out.println(name.toCharArray());
    }

    @Override
    public void close() throws Exception {
        System.out.println("I am closing..");
    }
}
